<template>
  <div>
    账号:
    <input v-model="username" type="text" name id />
    <br />
    <br />密码:
    <input v-model="password" type="pasword" name id />
  </div>
</template>

<script>
export default {
  data() {
    return {
      username: "",
      password: ""
    };
  },
  methods: {
    getValue() {
      return {
        username: this.username,
        password: this.password
      };
    },
    reset() {
      this.username = "";
      this.password = "";
    }
  }
};
</script>

<style>
</style>